import axios from 'axios';

import { UserFreezeConfig, UserStatusConfig } from '../models/UserItem';
import { UserQuery } from '../models/UserList';

export const getUserList = (query: UserQuery) => axios.get('/system/user/page', { params: query.params });

export const updateUserStatus = (query: UserStatusConfig) => axios.post('/system/user/change/status', query.body);

export const clearUserBalance = (query: UserStatusConfig) => axios.post('/api/v1/platform/clear/balance', query.clearBody);

export const settingFreezeTime = (query: UserFreezeConfig) => axios.post('/api/v1/platform/set/freezeTime', query.body);
